{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\Fabio Franchino\Dropbox\Project EU Fiscal Policy\3 Bargaining outcomes\Sent to PSRM\third submission\Replication\tables_A4_to_A7.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}12 Apr 2021, 09:54:14
{txt}
{com}. 
. * Legend:
. * nbs "nash bargaining solution, with reference point"
. * nbs_norp "nash bargaining solution, without reference point"
. * comp "compromise model, without reference point"
. * comp2 "compromise model, 6-country power in QMV without reference point"
. * comp3 "compromise model (Thomson power weights), without reference point"
. * m_mean "mean model solution"
. * minimax "minimax solution"
. * PROCrp "procedural model with reference point"
. * PROCnorp "procedural model without reference point"
. 
. *************   Table A6
. * Cells for Table A6 (means and st.dev)
. sum compAD /* column 1 row 1 - same as column 1 row 6 of Table 1 */

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 6}compAD {c |}{res}         35    18.45714    17.46651          0         62
{txt}
{com}. sum comp /* column 2 row 1 - same as column 2 row 6 of Table 1 */

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 8}comp {c |}{res}         35    55.51429    28.33972          0        100
{txt}
{com}. 
. gen comp2AD=abs( comp2 - outcome )
{txt}
{com}. label variable comp2AD "=abs( comp2 - outcome )"
{txt}
{com}. sum comp2AD /* column 1 row 2 */

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}comp2AD {c |}{res}         35    19.97143    15.98066          0         55
{txt}
{com}. 
. sum comp2 /* column 2 row 2 */

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}comp2 {c |}{res}         35    54.97143    29.00455          0        100
{txt}
{com}. 
. gen comp2compAD=abs( comp2 - comp )
{txt}
{com}. label variable comp2compAD "=abs( comp2 - comp )"
{txt}
{com}. sum comp2compAD /* column 3 row 2 */

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 1}comp2compAD {c |}{res}         35    9.057143    8.643062          0         36
{txt}
{com}. 
. gen comp3AD=abs( comp3 - outcome )
{txt}
{com}. label variable compAD "=abs( comp3 - outcome )"
{txt}
{com}. sum comp3AD

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 5}comp3AD {c |}{res}         35    22.28571    20.70461          0         88
{txt}
{com}. 
. sum comp3

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}comp3 {c |}{res}         35    51.91429    27.01021          8         94
{txt}
{com}. 
. gen comp3compAD=abs( comp3 - comp )
{txt}
{com}. label variable comp3compAD "=abs( comp3 - comp )"
{txt}
{com}. sum comp3compAD

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 1}comp3compAD {c |}{res}         35    8.057143    7.541816          0         26
{txt}
{com}. 
. gen comp2comp3AD=abs( comp2 - comp3 )
{txt}
{com}. label variable comp2comp3AD "=abs( comp2 - comp3 )"
{txt}
{com}. sum comp2comp3AD

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
comp2comp3AD {c |}{res}         35    14.82857    12.39897          0         46
{txt}
{com}. 
. *************   Table A4
. * Cells for Table A4 (means and st.dev)
. * Unanimity & Consultation (column 1)
. sum PROCrpAD PROCnorpAD nbsAD nbs_norpAD compAD m_meanAD minimaxAD comp2AD comp3AD if cou_rule == 1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}PROCrpAD {c |}{res}          8      34.375    29.69337          0         75
{txt}{space 2}PROCnorpAD {c |}{res}          8      21.875    31.16059          0         75
{txt}{space 7}nbsAD {c |}{res}          8       12.25    14.44942          0         40
{txt}{space 2}nbs_norpAD {c |}{res}          8      16.875    17.04982          0         44
{txt}{space 6}compAD {c |}{res}          8      16.625    17.62253          0         46
{txt}{hline 13}{c +}{hline 57}
{space 4}m_meanAD {c |}{res}          8       16.75    17.92644          0         45
{txt}{space 3}minimaxAD {c |}{res}          8       22.25    25.27986          0         53
{txt}{space 5}comp2AD {c |}{res}          8      19.125    12.32231          0         40
{txt}{space 5}comp3AD {c |}{res}          8      16.625     17.2787          0         40
{txt}
{com}. 
. * QMV & Consultation (column 2)
. sum PROCrpAD PROCnorpAD nbsAD nbs_norpAD compAD m_meanAD minimaxAD comp2AD comp3AD if cou_rule == 2 & ep_rule == 1

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}PROCrpAD {c |}{res}          7    7.142857    18.89822          0         50
{txt}{space 2}PROCnorpAD {c |}{res}          7    14.28571     24.3975          0         50
{txt}{space 7}nbsAD {c |}{res}          7    65.42857    37.41148          0        100
{txt}{space 2}nbs_norpAD {c |}{res}          7    15.28571    20.05587          0         46
{txt}{space 6}compAD {c |}{res}          7    14.85714    18.53311          0         50
{txt}{hline 13}{c +}{hline 57}
{space 4}m_meanAD {c |}{res}          7    15.42857     20.2884          0         46
{txt}{space 3}minimaxAD {c |}{res}          7    36.57143    23.06409          3         53
{txt}{space 5}comp2AD {c |}{res}          7    16.14286     16.9944          0         50
{txt}{space 5}comp3AD {c |}{res}          7          19    14.11855          4         40
{txt}
{com}. 
. * OLP (column 3)
. sum PROCrpAD PROCnorpAD nbsAD nbs_norpAD compAD m_meanAD minimaxAD comp2AD comp3AD if cou_rule == 2 & ep_rule == 2

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}PROCrpAD {c |}{res}         20       38.75    44.03572          0        100
{txt}{space 2}PROCnorpAD {c |}{res}         20       21.25    32.72191          0        100
{txt}{space 7}nbsAD {c |}{res}         20       55.95     38.5657          0        100
{txt}{space 2}nbs_norpAD {c |}{res}         20        24.1    24.57834          1         96
{txt}{space 6}compAD {c |}{res}         20       20.45     17.6828          0         62
{txt}{hline 13}{c +}{hline 57}
{space 4}m_meanAD {c |}{res}         20       23.35    25.29463          0         97
{txt}{space 3}minimaxAD {c |}{res}         20       32.05    22.42056          0         50
{txt}{space 5}comp2AD {c |}{res}         20       21.65    17.35474          0         55
{txt}{space 5}comp3AD {c |}{res}         20        25.7    23.75777          0         88
{txt}
{com}. 
. *************   Table A6
. * Two-sided sign tests for Table A6
. * (see Table 1 for tests for the Compromise model  - COMP)
. signtest        outcome =       comp2 /* column 1 row 2 */

{txt}Sign test

        sign {c |}    observed    expected
{hline 13}{c +}{hline 24}
    positive {c |}{res}{col 17}        17{col 29}        15
    {txt}negative {c |}{res}{col 17}        13{col 29}        15
        {txt}zero {c |}{res}{col 17}         5{col 29}         5
{txt}{hline 13}{c +}{hline 24}
         all {c |}{res}{col 17}        35{col 29}        35

{txt}One-sided tests:
  Ho: median of outcome - comp2 = 0 vs.
  Ha: median of outcome - comp2 > 0
      Pr(#positive >= {res}17{txt}) =
         Binomial(n = {res}30{txt}, x >= {res}17{txt}, p = 0.5) = {res} 0.2923

{txt}  Ho: median of outcome - comp2 = 0 vs.
  Ha: median of outcome - comp2 < 0
      Pr(#negative >= {res}13{txt}) =
         Binomial(n = {res}30{txt}, x >= {res}13{txt}, p = 0.5) = {res} 0.8192

{txt}Two-sided test:
  Ho: median of outcome - comp2 = 0 vs.
  Ha: median of outcome - comp2 != 0
      Pr(#positive >= {res}17{txt} or #negative >= {res}17{txt}) =
         min(1, 2*Binomial(n = {res}30{txt}, x >= {res}17{txt}, p = 0.5)) = {res} 0.5847
{txt}
{com}. signtest        outcome =       comp3 /* column 1 row 3 */

{txt}Sign test

        sign {c |}    observed    expected
{hline 13}{c +}{hline 24}
    positive {c |}{res}{col 17}        19{col 29}      15.5
    {txt}negative {c |}{res}{col 17}        12{col 29}      15.5
        {txt}zero {c |}{res}{col 17}         4{col 29}         4
{txt}{hline 13}{c +}{hline 24}
         all {c |}{res}{col 17}        35{col 29}        35

{txt}One-sided tests:
  Ho: median of outcome - comp3 = 0 vs.
  Ha: median of outcome - comp3 > 0
      Pr(#positive >= {res}19{txt}) =
         Binomial(n = {res}31{txt}, x >= {res}19{txt}, p = 0.5) = {res} 0.1405

{txt}  Ho: median of outcome - comp3 = 0 vs.
  Ha: median of outcome - comp3 < 0
      Pr(#negative >= {res}12{txt}) =
         Binomial(n = {res}31{txt}, x >= {res}12{txt}, p = 0.5) = {res} 0.9252

{txt}Two-sided test:
  Ho: median of outcome - comp3 = 0 vs.
  Ha: median of outcome - comp3 != 0
      Pr(#positive >= {res}19{txt} or #negative >= {res}19{txt}) =
         min(1, 2*Binomial(n = {res}31{txt}, x >= {res}19{txt}, p = 0.5)) = {res} 0.2810
{txt}
{com}. 
. signtest        sq      =       comp2 /* column 2 row 2 */

{txt}Sign test

        sign {c |}    observed    expected
{hline 13}{c +}{hline 24}
    positive {c |}{res}{col 17}         0{col 29}        16
    {txt}negative {c |}{res}{col 17}        32{col 29}        16
        {txt}zero {c |}{res}{col 17}         3{col 29}         3
{txt}{hline 13}{c +}{hline 24}
         all {c |}{res}{col 17}        35{col 29}        35

{txt}One-sided tests:
  Ho: median of sq - comp2 = 0 vs.
  Ha: median of sq - comp2 > 0
      Pr(#positive >= {res}0{txt}) =
         Binomial(n = {res}32{txt}, x >= {res}0{txt}, p = 0.5) = {res} 1.0000

{txt}  Ho: median of sq - comp2 = 0 vs.
  Ha: median of sq - comp2 < 0
      Pr(#negative >= {res}32{txt}) =
         Binomial(n = {res}32{txt}, x >= {res}32{txt}, p = 0.5) = {res} 0.0000

{txt}Two-sided test:
  Ho: median of sq - comp2 = 0 vs.
  Ha: median of sq - comp2 != 0
      Pr(#positive >= {res}32{txt} or #negative >= {res}32{txt}) =
         min(1, 2*Binomial(n = {res}32{txt}, x >= {res}32{txt}, p = 0.5)) = {res} 0.0000
{txt}
{com}. signtest        sq      =       comp3

{txt}Sign test

        sign {c |}    observed    expected
{hline 13}{c +}{hline 24}
    positive {c |}{res}{col 17}         0{col 29}      17.5
    {txt}negative {c |}{res}{col 17}        35{col 29}      17.5
        {txt}zero {c |}{res}{col 17}         0{col 29}         0
{txt}{hline 13}{c +}{hline 24}
         all {c |}{res}{col 17}        35{col 29}        35

{txt}One-sided tests:
  Ho: median of sq - comp3 = 0 vs.
  Ha: median of sq - comp3 > 0
      Pr(#positive >= {res}0{txt}) =
         Binomial(n = {res}35{txt}, x >= {res}0{txt}, p = 0.5) = {res} 1.0000

{txt}  Ho: median of sq - comp3 = 0 vs.
  Ha: median of sq - comp3 < 0
      Pr(#negative >= {res}35{txt}) =
         Binomial(n = {res}35{txt}, x >= {res}35{txt}, p = 0.5) = {res} 0.0000

{txt}Two-sided test:
  Ho: median of sq - comp3 = 0 vs.
  Ha: median of sq - comp3 != 0
      Pr(#positive >= {res}35{txt} or #negative >= {res}35{txt}) =
         min(1, 2*Binomial(n = {res}35{txt}, x >= {res}35{txt}, p = 0.5)) = {res} 0.0000
{txt}
{com}. 
. signtest        comp    =       comp2

{txt}Sign test

        sign {c |}    observed    expected
{hline 13}{c +}{hline 24}
    positive {c |}{res}{col 17}        18{col 29}        15
    {txt}negative {c |}{res}{col 17}        12{col 29}        15
        {txt}zero {c |}{res}{col 17}         5{col 29}         5
{txt}{hline 13}{c +}{hline 24}
         all {c |}{res}{col 17}        35{col 29}        35

{txt}One-sided tests:
  Ho: median of comp - comp2 = 0 vs.
  Ha: median of comp - comp2 > 0
      Pr(#positive >= {res}18{txt}) =
         Binomial(n = {res}30{txt}, x >= {res}18{txt}, p = 0.5) = {res} 0.1808

{txt}  Ho: median of comp - comp2 = 0 vs.
  Ha: median of comp - comp2 < 0
      Pr(#negative >= {res}12{txt}) =
         Binomial(n = {res}30{txt}, x >= {res}12{txt}, p = 0.5) = {res} 0.8998

{txt}Two-sided test:
  Ho: median of comp - comp2 = 0 vs.
  Ha: median of comp - comp2 != 0
      Pr(#positive >= {res}18{txt} or #negative >= {res}18{txt}) =
         min(1, 2*Binomial(n = {res}30{txt}, x >= {res}18{txt}, p = 0.5)) = {res} 0.3616
{txt}
{com}. signtest        comp    =       comp2

{txt}Sign test

        sign {c |}    observed    expected
{hline 13}{c +}{hline 24}
    positive {c |}{res}{col 17}        18{col 29}        15
    {txt}negative {c |}{res}{col 17}        12{col 29}        15
        {txt}zero {c |}{res}{col 17}         5{col 29}         5
{txt}{hline 13}{c +}{hline 24}
         all {c |}{res}{col 17}        35{col 29}        35

{txt}One-sided tests:
  Ho: median of comp - comp2 = 0 vs.
  Ha: median of comp - comp2 > 0
      Pr(#positive >= {res}18{txt}) =
         Binomial(n = {res}30{txt}, x >= {res}18{txt}, p = 0.5) = {res} 0.1808

{txt}  Ho: median of comp - comp2 = 0 vs.
  Ha: median of comp - comp2 < 0
      Pr(#negative >= {res}12{txt}) =
         Binomial(n = {res}30{txt}, x >= {res}12{txt}, p = 0.5) = {res} 0.8998

{txt}Two-sided test:
  Ho: median of comp - comp2 = 0 vs.
  Ha: median of comp - comp2 != 0
      Pr(#positive >= {res}18{txt} or #negative >= {res}18{txt}) =
         min(1, 2*Binomial(n = {res}30{txt}, x >= {res}18{txt}, p = 0.5)) = {res} 0.3616
{txt}
{com}. 
. signtest        comp2   =       comp3

{txt}Sign test

        sign {c |}    observed    expected
{hline 13}{c +}{hline 24}
    positive {c |}{res}{col 17}        17{col 29}        17
    {txt}negative {c |}{res}{col 17}        17{col 29}        17
        {txt}zero {c |}{res}{col 17}         1{col 29}         1
{txt}{hline 13}{c +}{hline 24}
         all {c |}{res}{col 17}        35{col 29}        35

{txt}One-sided tests:
  Ho: median of comp2 - comp3 = 0 vs.
  Ha: median of comp2 - comp3 > 0
      Pr(#positive >= {res}17{txt}) =
         Binomial(n = {res}34{txt}, x >= {res}17{txt}, p = 0.5) = {res} 0.5679

{txt}  Ho: median of comp2 - comp3 = 0 vs.
  Ha: median of comp2 - comp3 < 0
      Pr(#negative >= {res}17{txt}) =
         Binomial(n = {res}34{txt}, x >= {res}17{txt}, p = 0.5) = {res} 0.5679

{txt}Two-sided test:
  Ho: median of comp2 - comp3 = 0 vs.
  Ha: median of comp2 - comp3 != 0
      Pr(#positive >= {res}17{txt} or #negative >= {res}17{txt}) =
         min(1, 2*Binomial(n = {res}34{txt}, x >= {res}17{txt}, p = 0.5)) = {res} 1.0000
{txt}
{com}. 
. 
. *************   Table A7
. * The table after the command displays the cells in Table A7
. * Below are the one-sided sign tests for Table A7
. signtest        compAD          =       comp2AD

{txt}Sign test

        sign {c |}    observed    expected
{hline 13}{c +}{hline 24}
    positive {c |}{res}{col 17}        13{col 29}        15
    {txt}negative {c |}{res}{col 17}        17{col 29}        15
        {txt}zero {c |}{res}{col 17}         5{col 29}         5
{txt}{hline 13}{c +}{hline 24}
         all {c |}{res}{col 17}        35{col 29}        35

{txt}One-sided tests:
  Ho: median of compAD - comp2AD = 0 vs.
  Ha: median of compAD - comp2AD > 0
      Pr(#positive >= {res}13{txt}) =
         Binomial(n = {res}30{txt}, x >= {res}13{txt}, p = 0.5) = {res} 0.8192

{txt}  Ho: median of compAD - comp2AD = 0 vs.
  Ha: median of compAD - comp2AD < 0
      Pr(#negative >= {res}17{txt}) =
         Binomial(n = {res}30{txt}, x >= {res}17{txt}, p = 0.5) = {res} 0.2923

{txt}Two-sided test:
  Ho: median of compAD - comp2AD = 0 vs.
  Ha: median of compAD - comp2AD != 0
      Pr(#positive >= {res}17{txt} or #negative >= {res}17{txt}) =
         min(1, 2*Binomial(n = {res}30{txt}, x >= {res}17{txt}, p = 0.5)) = {res} 0.5847
{txt}
{com}. signtest        compAD          =       comp3AD

{txt}Sign test

        sign {c |}    observed    expected
{hline 13}{c +}{hline 24}
    positive {c |}{res}{col 17}         9{col 29}        15
    {txt}negative {c |}{res}{col 17}        21{col 29}        15
        {txt}zero {c |}{res}{col 17}         5{col 29}         5
{txt}{hline 13}{c +}{hline 24}
         all {c |}{res}{col 17}        35{col 29}        35

{txt}One-sided tests:
  Ho: median of compAD - comp3AD = 0 vs.
  Ha: median of compAD - comp3AD > 0
      Pr(#positive >= {res}9{txt}) =
         Binomial(n = {res}30{txt}, x >= {res}9{txt}, p = 0.5) = {res} 0.9919

{txt}  Ho: median of compAD - comp3AD = 0 vs.
  Ha: median of compAD - comp3AD < 0
      Pr(#negative >= {res}21{txt}) =
         Binomial(n = {res}30{txt}, x >= {res}21{txt}, p = 0.5) = {res} 0.0214

{txt}Two-sided test:
  Ho: median of compAD - comp3AD = 0 vs.
  Ha: median of compAD - comp3AD != 0
      Pr(#positive >= {res}21{txt} or #negative >= {res}21{txt}) =
         min(1, 2*Binomial(n = {res}30{txt}, x >= {res}21{txt}, p = 0.5)) = {res} 0.0428
{txt}
{com}. signtest        comp2AD =       comp3AD

{txt}Sign test

        sign {c |}    observed    expected
{hline 13}{c +}{hline 24}
    positive {c |}{res}{col 17}        15{col 29}        17
    {txt}negative {c |}{res}{col 17}        19{col 29}        17
        {txt}zero {c |}{res}{col 17}         1{col 29}         1
{txt}{hline 13}{c +}{hline 24}
         all {c |}{res}{col 17}        35{col 29}        35

{txt}One-sided tests:
  Ho: median of comp2AD - comp3AD = 0 vs.
  Ha: median of comp2AD - comp3AD > 0
      Pr(#positive >= {res}15{txt}) =
         Binomial(n = {res}34{txt}, x >= {res}15{txt}, p = 0.5) = {res} 0.8042

{txt}  Ho: median of comp2AD - comp3AD = 0 vs.
  Ha: median of comp2AD - comp3AD < 0
      Pr(#negative >= {res}19{txt}) =
         Binomial(n = {res}34{txt}, x >= {res}19{txt}, p = 0.5) = {res} 0.3038

{txt}Two-sided test:
  Ho: median of comp2AD - comp3AD = 0 vs.
  Ha: median of comp2AD - comp3AD != 0
      Pr(#positive >= {res}19{txt} or #negative >= {res}19{txt}) =
         min(1, 2*Binomial(n = {res}34{txt}, x >= {res}19{txt}, p = 0.5)) = {res} 0.6076
{txt}
{com}. 
. 
. *************   Table A5
. * Mean Euclidean Errors for Table A5
. use data_signtest.dta, clear
{txt}
{com}. gen meePROCrp = ( PROCrp - outcome )^2
{txt}
{com}. sort act
{txt}
{com}. by act: egen TmeePROCrp = mean(meePROCrp)
{txt}
{com}. collapse (mean) TmeePROCrp, by(act)
{txt}
{com}. replace TmeePROCrp = sqrt(TmeePROCrp)
{txt}(10 real changes made)

{com}. collapse (mean) TmeePROCrp /* Euclidean error PROC */
{txt}
{com}. 
. use data_signtest.dta, clear
{txt}
{com}. gen meePROCnorp = (PROCnorp - outcome)^2
{txt}
{com}. sort act
{txt}
{com}. by act: egen TmeePROCnorp = mean(meePROCnorp)
{txt}
{com}. collapse (mean) TmeePROCnorp, by(act)
{txt}
{com}. replace TmeePROCnorp = sqrt(TmeePROCnorp)
{txt}(9 real changes made)

{com}. collapse (mean) TmeePROCnorp /* Euclidean error PROC ¬ RP */
{txt}
{com}. 
. use data_signtest.dta, clear
{txt}
{com}. gen meenbs = (nbs - outcome)^2
{txt}
{com}. sort act
{txt}
{com}. by act: egen Tmeenbs = mean(meenbs)
{txt}
{com}. collapse (mean) Tmeenbs, by(act)
{txt}
{com}. replace Tmeenbs = sqrt(Tmeenbs)
{txt}(12 real changes made)

{com}. collapse (mean) Tmeenbs /* Euclidean error NBS */
{txt}
{com}. 
. use data_signtest.dta, clear
{txt}
{com}. gen meenbs_norp = (nbs_norp - outcome)^2
{txt}
{com}. sort act
{txt}
{com}. by act: egen Tmeenbs_norp = mean(meenbs_norp)
{txt}
{com}. collapse (mean) Tmeenbs_norp, by(act)
{txt}
{com}. replace Tmeenbs_norp = sqrt(Tmeenbs_norp)
{txt}(13 real changes made)

{com}. collapse (mean) Tmeenbs_norp /* Euclidean error NBS ¬ RP */
{txt}
{com}. 
. use data_signtest.dta, clear
{txt}
{com}. gen meecomp = (comp - outcome)^2
{txt}
{com}. sort act
{txt}
{com}. by act: egen Tmeecomp = mean(meecomp)
{txt}
{com}. collapse (mean) Tmeecomp, by(act)
{txt}
{com}. replace Tmeecomp = sqrt(Tmeecomp)
{txt}(11 real changes made)

{com}. collapse (mean) Tmeecomp /* Euclidean error COMP */
{txt}
{com}. 
. use data_signtest.dta, clear
{txt}
{com}. gen meem_mean = (m_mean - outcome)^2
{txt}
{com}. sort act
{txt}
{com}. by act: egen Tmeem_mean = mean(meem_mean)
{txt}
{com}. collapse (mean) Tmeem_mean, by(act)
{txt}
{com}. replace Tmeem_mean = sqrt(Tmeem_mean)
{txt}(13 real changes made)

{com}. collapse (mean) Tmeem_mean /* Euclidean error Mean */
{txt}
{com}. 
. use data_signtest.dta, clear
{txt}
{com}. gen meeminimax = (minimax - outcome)^2
{txt}
{com}. sort act
{txt}
{com}. by act: egen Tmeeminimax = mean(meeminimax)
{txt}
{com}. collapse (mean) Tmeeminimax, by(act)
{txt}
{com}. replace Tmeeminimax = sqrt(Tmeeminimax)
{txt}(13 real changes made)

{com}. collapse (mean) Tmeeminimax /* Euclidean error Minimax */
{txt}
{com}. 
. use data_signtest.dta, clear
{txt}
{com}. gen meecomp2 = (comp2 - outcome)^2
{txt}
{com}. sort act
{txt}
{com}. by act: egen Tmeecomp2 = mean(meecomp2)
{txt}
{com}. collapse (mean) Tmeecomp2, by(act)
{txt}
{com}. replace Tmeecomp2 = sqrt(Tmeecomp2)
{txt}(11 real changes made)

{com}. collapse (mean) Tmeecomp2 /* Euclidean error COMP (big 5/6) */
{txt}
{com}. 
. use data_signtest.dta, clear
{txt}
{com}. gen meecomp3 = (comp3 - outcome)^2
{txt}
{com}. sort act
{txt}
{com}. by act: egen Tmeecomp3 = mean(meecomp3)
{txt}
{com}. collapse (mean) Tmeecomp3, by(act)
{txt}
{com}. replace Tmeecomp3 = sqrt(Tmeecomp3)
{txt}(13 real changes made)

{com}. collapse (mean) Tmeecomp3 /* Euclidean error COMP (derived power) */
{txt}
{com}. 
. * Pseudo-R^2 for Table A5
. * These values are generated in the variables labelled pseudoR_
. use data_signtest.dta, clear
{txt}
{com}. gen mid = ( outcome - 50 )^2
{txt}
{com}. egen Tmid = total(mid)
{txt}
{com}. 
. gen PROCrpADsq=( PROCrp - outcome )^2
{txt}
{com}. egen TPROCrpADsq = total(PROCrpADsq)
{txt}
{com}. gen pseudoR_PROCrp = 1 - (TPROCrpADsq/Tmid) /* Pseudo-R^2 PROC */
{txt}
{com}. label variable pseudoR_PROCrp "Pseudo-R^2 PROC model"
{txt}
{com}.  
. gen PROCnorpADsq=( PROCnorp - outcome )^2
{txt}
{com}. egen TPROCnorpADsq = total(PROCnorpADsq)
{txt}
{com}. gen pseudoR_PROCnorp = 1 - (TPROCnorpADsq/Tmid) /* Pseudo-R^2 PROC ¬ RP */
{txt}
{com}. label variable pseudoR_PROCnorp "Pseudo-R^2 PROC ¬ RP model"
{txt}
{com}. 
. gen nbsADsq=( nbs - outcome )^2
{txt}
{com}. egen TnbsADsq = total(nbsADsq)
{txt}
{com}. gen pseudoR_nbs = 1 - (TnbsADsq/Tmid) /* Pseudo-R^2 NBS */
{txt}
{com}. label variable pseudoR_nbs "Pseudo-R^2 NBS model"
{txt}
{com}. 
. gen nbs_norpADsq=( nbs_norp - outcome )^2
{txt}
{com}. egen Tnbs_norpADsq = total(nbs_norpADsq)
{txt}
{com}. gen pseudoR_nbs_norp = 1 - (Tnbs_norpADsq/Tmid) /* Pseudo-R^2 NBS ¬ RP*/
{txt}
{com}. label variable pseudoR_nbs_norp "Pseudo-R^2 NBS ¬ RP model"
{txt}
{com}. 
. gen compADsq=( comp - outcome )^2
{txt}
{com}. egen TcompADsq = total(compADsq)
{txt}
{com}. gen pseudoR_comp = 1 - (TcompADsq/Tmid) /* Pseudo-R^2 COMP */
{txt}
{com}. label variable pseudoR_comp "Pseudo-R^2 COMP model"
{txt}
{com}. 
. gen m_meanADsq=( m_mean - outcome )^2
{txt}
{com}. egen Tm_meanADsq = total(m_meanADsq)
{txt}
{com}. gen pseudoR_m_mean = 1 - (Tm_meanADsq/Tmid) /* Pseudo-R^2 Mean */
{txt}
{com}. label variable pseudoR_m_mean "Pseudo-R^2 Mean model"
{txt}
{com}. 
. gen minimaxADsq=( minimax - outcome )^2
{txt}
{com}. egen TminimaxADsq = total(minimaxADsq)
{txt}
{com}. gen pseudoR_minimax = 1 - (TminimaxADsq/Tmid) /* Pseudo-R^2 Minimax */
{txt}
{com}. label variable pseudoR_minimax "Pseudo-R^2 Minimax model"
{txt}
{com}. 
. gen comp2ADsq=( comp2 - outcome )^2
{txt}
{com}. egen Tcomp2ADsq = total(comp2ADsq)
{txt}
{com}. gen pseudoR_comp2 = 1 - (Tcomp2ADsq/Tmid) /* Pseudo-R^2  COMP (big 5/6)*/
{txt}
{com}. label variable pseudoR_comp2 "Pseudo-R^2 COMP (big 5/6) model"
{txt}
{com}. 
. gen comp3ADsq=( comp3 - outcome )^2
{txt}
{com}. egen Tcomp3ADsq = total(comp3ADsq)
{txt}
{com}. gen pseudoR_comp3 = 1 - (Tcomp3ADsq/Tmid) /* Pseudo-R^2  COMP (derived power) */
{txt}
{com}. label variable pseudoR_comp3 "Pseudo-R^2 COMP (derived power) model"
{txt}
{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\Fabio Franchino\Dropbox\Project EU Fiscal Policy\3 Bargaining outcomes\Sent to PSRM\third submission\Replication\tables_A4_to_A7.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}12 Apr 2021, 09:54:14
{txt}{.-}
{smcl}
{txt}{sf}{ul off}